CFLAGS += $(addprefix -I,$(PLAT_INC_DIR))

dir_y := 
ifeq ($(PLAT_RELEASE), n)
	dir_y += src
endif
dir_y += lib

ifeq ($(COMPILE_SO), n)
	dir_y += demo
endif

all:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i; \
		if [ $$? -ne 0 ];then exit 1; fi \
	done

install:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i install; \
	done

clean:
	@for i in $(dir_y); \
	do \
		$(MAKE) -C $$i clean; \
	done

image:

.PHONY: all install clean image
